//
//  HDInsuranceViewController.swift
//  HuaDaoPeifu
//
//  Created by Erickson on 16/3/29.
//  Copyright © 2016年 paiyipai. All rights reserved.
//

import UIKit

class HDInsuranceViewController: UIViewController {
    
    var detailWebView = UIWebView()
    var policynoStr:String!

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
        detailWebView.backgroundColor = UIColor.white
        title = " 产品详情"
        setupTableView()
    }
    
    func setupTableView(){
        view.addSubview(detailWebView)
        detailWebView.snp.makeConstraints { (make) in
            make.edges.equalTo(view)
        }
        
        let tokenStr = String("?atk=\(HDAccountHandler.token!)")
        
        detailWebView.loadRequest(URLRequest(url:URL(string:AppApi.policyDetailApiUrl + tokenStr! + policynoStr)!))
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    deinit{
        print("----")
    }
    


}
